NestedScrollingParent2

This interface should be implemented by ViewGroup subclasses that wish to support scrolling operations delegated by a nested child view.

Classes implementing this interface should create a final instance of a NestedScrollingParentHelper as a field and delegate any View or ViewGroup methods to the NestedScrollingParentHelper methods of the same signature.

Views invoking nested scrolling functionality should always do so from the relevant ViewCompat, ViewGroupCompat or ViewParentCompat compatibility shim static methods. This ensures interoperability with nested scrolling views on all versions of Android.

Inheritors

Functions

Link copied to clipboard
abstract fun onNestedPreScroll(@NonNull target: View, dx: Int, dy: Int, @NonNull consumed: Array<Int>, type: Int)
React to a nested scroll in progress before the target view consumes a portion of the scroll.
Link copied to clipboard
abstract fun onNestedScroll(@NonNull target: View, dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int, type: Int)
React to a nested scroll in progress.
Link copied to clipboard
abstract fun onNestedScrollAccepted(@NonNull child: View, @NonNull target: View, axes: Int, type: Int)
React to the successful claiming of a nested scroll operation.
Link copied to clipboard
abstract fun onStartNestedScroll(@NonNull child: View, @NonNull target: View, axes: Int, type: Int): Boolean
React to a descendant view initiating a nestable scroll operation, claiming the nested scroll operation if appropriate.
Link copied to clipboard
abstract fun onStopNestedScroll(@NonNull target: View, type: Int)
React to a nested scroll operation ending.